package com.hm.base.domain;

import java.util.Date;

import javax.persistence.Id;
import javax.persistence.Table;

/**
 * @author shishun.wang
 * @date 下午4:03:57 2017年6月2日
 * @version 1.0
 * @describe 系统登录账户信息
 */
@Table(name = "hm_subscriber")
public class Subscriber {

	/**
	 * ID
	 */
	@Id
	private Long id;

	/**
	 * 上级用户id
	 */
	private Long parentId;

	/**
	 * 账户
	 */
	private String account;

	/**
	 * 邮箱地址
	 */
	private String email;

	/**
	 * 用户名
	 */
	private String userName;

	/**
	 * 密码
	 */
	private String userPwd;

	/**
	 * 电话号码
	 */
	private String phone;

	/**
	 * 性别
	 */
	private String sex;

	/**
	 * 头像
	 */
	private String headPortrait;

	/**
	 * 上次登陆ip地址
	 */
	private String lostLoginIp;

	/**
	 * 上次登录时间
	 */
	private Date lastLoginTime;

	/**
	 * 创建时间
	 */
	private Date createTime;

	/**
	 * 使用状态
	 */
	private String status;

	/**
	 * 系统默认
	 */
	private String systemDefault;

	public Long getId() {
		return id;
	}

	public void setId(Long id) {
		this.id = id;
	}

	public Long getParentId() {
		return parentId;
	}

	public void setParentId(Long parentId) {
		this.parentId = parentId;
	}

	public String getAccount() {
		return account;
	}

	public void setAccount(String account) {
		this.account = account == null ? null : account.trim();
	}

	public String getEmail() {
		return email;
	}

	public void setEmail(String email) {
		this.email = email == null ? null : email.trim();
	}

	public String getUserName() {
		return userName;
	}

	public void setUserName(String userName) {
		this.userName = userName == null ? null : userName.trim();
	}

	public String getUserPwd() {
		return userPwd;
	}

	public void setUserPwd(String userPwd) {
		this.userPwd = userPwd == null ? null : userPwd.trim();
	}

	public String getPhone() {
		return phone;
	}

	public void setPhone(String phone) {
		this.phone = phone == null ? null : phone.trim();
	}

	public String getSex() {
		return sex;
	}

	public void setSex(String sex) {
		this.sex = sex == null ? null : sex.trim();
	}

	public String getHeadPortrait() {
		return headPortrait;
	}

	public void setHeadPortrait(String headPortrait) {
		this.headPortrait = headPortrait == null ? null : headPortrait.trim();
	}

	public String getLostLoginIp() {
		return lostLoginIp;
	}

	public void setLostLoginIp(String lostLoginIp) {
		this.lostLoginIp = lostLoginIp == null ? null : lostLoginIp.trim();
	}

	public Date getLastLoginTime() {
		return lastLoginTime;
	}

	public void setLastLoginTime(Date lastLoginTime) {
		this.lastLoginTime = lastLoginTime;
	}

	public Date getCreateTime() {
		return createTime;
	}

	public void setCreateTime(Date createTime) {
		this.createTime = createTime;
	}

	public String getStatus() {
		return status;
	}

	public void setStatus(String status) {
		this.status = status == null ? null : status.trim();
	}

	public String getSystemDefault() {
		return systemDefault;
	}

	public void setSystemDefault(String systemDefault) {
		this.systemDefault = systemDefault == null ? null : systemDefault.trim();
	}
}